/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.service.impl;

import cc.altius.dao.CenterDao;
import cc.altius.model.HealthSpringCenter;
import cc.altius.service.CenterService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author sagar
 */
@Service
public class CenterServiceImpl implements CenterService {
    
    @Autowired
    private CenterDao centerDao;

    @Override
    public int addCenter(HealthSpringCenter center) {
        return this.centerDao.addCenter(center);
    }

    @Override
    public HealthSpringCenter getCenterById(int centerId) {
        return this.centerDao.getCenterById(centerId);
    }

    @Override
    public List<HealthSpringCenter> getCenterList(int cityId) {
        return this.centerDao.getCenterList(cityId);
    }

    @Override
    public int updateCenter(HealthSpringCenter center, int centerId) {
        return this.centerDao.updateCenter(center, centerId);
    }

    @Override
    public List<HealthSpringCenter> getCenterList() {
        return this.centerDao.getCenterList();
    }

    @Override
    public String getEmailIdOfCentre(int centerId) {
        return this.centerDao.getEmailIdOfCentre(centerId);
    }
 
    
}
